package com.todo.content.application.service;

import com.todo.common.common.entity.response.page.PageResult;
import com.todo.content.application.entity.bo.ContentTopicRelationBO;
import com.todo.content.application.entity.condition.TopicRelationConditionBO;


import java.util.List;

/**
 * (ContentTopicRelation)表服务接口
 *
 * @author zhangwenxiang
 * @since 2024-03-04 00:19:46
 */
public interface ContentTopicRelationService {

    /**
     * 新增话题关联
     *
     * @param contentTopicRelationBOList
     * @return
     */
    Boolean insertTopicRelationList(List<ContentTopicRelationBO> contentTopicRelationBOList);

    /**
     * 根据主键id删除话题关联
     *
     * @param id
     * @return
     */
    Boolean removeTopicRelationById(Long id);

    /**
     * 根据内容Id删除话题关联
     *
     * @param contentId
     * @return
     */
    Boolean removeTopicRelationByContentId(Long contentId);

    /**
     * 根据内容Id查询话题关联信息
     *
     * @param contentId
     * @return
     */
    List<ContentTopicRelationBO> queryTopicRelationByContentId(Long contentId);

    /**
     * 多条件分页查询话题关联列表
     *
     * @param condition
     * @return
     */
    PageResult<ContentTopicRelationBO> queryTopicRelationByPage(TopicRelationConditionBO condition);

}
